//
//  YZMImageService.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/18.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YZMImageService : NSObject

+ (NSString *)pathInDocumentDirectory:(NSString *)fileName;//获取文件目录

+ (BOOL)hasDir:(NSString *)filePath  bDir:(BOOL)isDir;//判断是否存在此文件 isDir：是否为目录

+ (BOOL)createDirInDocument:(NSString *)dirName;//创建目录

+ (BOOL)deleteDirInDocument:(NSString *)dirname isDir:(BOOL)bDir;//删除目录

+ (BOOL)saveImageToDocument:(NSString *) directoryPath image: (UIImage *)image  imageName: (NSString *)imageName;//保存图片

+ (NSData *)loadImageData:(NSString *)directoryPath fileName: (NSString *)fileName isDir:(BOOL)bDir;//获取数据（可以是图片 也可以是其他）

@end
